import request from '@/utils/request'

// 导入模板
export function importExcel (data) {
  return request({
    url: '/psHazard/importExcel',
    method: 'post',
    data: data,
  })
}
export function getByKilometerGridId (query) {
  return request({
    url: '/psHazard/getByKilometerGridId',
    method: 'get',
    params: query,
  })
}
export function getByRegionId () {
  return request({
    url: '/psHazard/getByRegionId',
    method: 'get'
  })
}
export function page (params) {
  return request({
    url: '/psHazard/page',
    method: 'get',
    params: params
  })
}
export function uploadRecords (params) {
  return request({
    url: '/psHazard/uploadRecords',
    method: 'get',
    params: params
  })
}
export function exportFile (params) {
  return request({
    url: '/psHazard/export',
    method: 'post',
    data: params
  })
}
